
#ifndef __IMAGE_H__
#define __IMAGE_H__
#pragma once

#define namespace_iRing_begin		namespace iRing {
#define namespace_iRing_end			}
#define namespace_iRing_using		using namespace iRing;
namespace_iRing_begin

#include <wingdi.h>

#define   R(p)   (((RGBQUAD*)(p))->rgbRed)
#define   G(p)   (((RGBQUAD*)(p))->rgbGreen)
#define   B(p)   (((RGBQUAD*)(p))->rgbBlue)
#define   A(p)   (((RGBQUAD*)(p))->rgbReserved)


class RGN
{
public:
	static HRGN FromImage(CImage const& image, COLORREF const& KeyColor = RGB(255, 0, 255) );
};


class RARGB
{
public:
	static CImage Pargb(CImage const& image);
};



namespace_iRing_end
#endif